#ifndef _EKOS_ERROR_H_
#define _EKOS_ERROR_H_

/* This file defines standard error codes used in EKOS */

/* Unspecified or unknown problem */
#define E_UNSPECIFIED	1
/* Request denied because of permission of proc or env */
#define E_DENIED        2
/* Invalid parameter of request */
#define E_INVAL			3
/* Memory shortage */
#define E_NO_MEM		4
/* Proc shortage */
#define E_NO_PROC		5
/* Memory fault */
#define E_FAULT			6
/* Other resource shortage */
#define E_NO_RES        7
/* Unsupported feature on current system */
#define E_UNSUPPORTED   8
/* IPS node is busy */
#define E_BUSY          9
/* Request return the control but not finished */
#define E_AGAIN         10
/* Indicate the yield action */
#define E_YIELD         11
/* Request was interrupt by user */
#define E_INTERRUPTED   12

#define	MAXERROR		12


#endif /* _EKOS_ERROR_H_ */
